﻿<%@ Control Language="VB" AutoEventWireup="false" CodeFile="Create.ascx.vb" Inherits="Control_QuanLyHoSoTamNgung_Create" %>
<%@ Register Assembly="CuteEditor" Namespace="CuteEditor" TagPrefix="CE" %>
<%@ Register Assembly="ValidationTextBox" Namespace="ValidationTextBox.CustomControls"
    TagPrefix="cc1" %>
<%@ Register Assembly="ValidationDropdownlist" Namespace="ValidationDropdownlist.CustomControls"
    TagPrefix="cc2" %>
<script type="text/javascript">
    function ajaxJquery() {
        $(function () {
            $(".Date").datepicker({ dateFormat: 'dd/mm/yy' });
            $(".TextBox:first").focus();
            //disabled thông tin của Certified ngừng kinh doanh
            $('.disabled').attr("disabled", "disabled");

            //validate save
            $("#<%= btnSave.ClientID %>").click(function () {

                if (validateFormInputs('reg') == true) {
                    return true;

                } else {
                    return false;
                }

            });
        });
    }
</script>
<asp:UpdatePanel ID="uplCertifiedtamngung" runat="server">
    <ContentTemplate>
        <div class="content_porletform">
            <div class="HeadTitle">
                <h3>
                    <asp:Label ID="Label3" runat="server" Text="THÊM TẠM NGỪNG KINH DOANH" /></h3>
            </div>
            <div class="box_contentform">
                <div class="box_scroll_grid">
                    <div class="DivRequired">
                        <span class="fieldRequired">&nbsp;</span>Trường yêu cầu nhập dữ liệu
                    </div>
                    <div class="Error">
                        <asp:ValidationSummary ID="ValidationSummary1" runat="server" ForeColor="#FF3300" />
                    </div>
                    <div id="DivCheckCertifiedCode" runat="server">
                        <div class="DivRow">
                            <div class="DivLabel">
                                <asp:Label ID="lblCertifiedcodechek" CssClass="TextLabel" runat="server" Text="Số GCN hoăc CMND:" /><span class="fieldRequired">&nbsp;</span>
                            </div>
                            <div class="DivTextBox">
                                <asp:TextBox ID="txtCertifiedcodechek" CssClass="TextBox" runat="server" Text="" />
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                                    ControlToValidate="txtCertifiedcodechek" Display="None" ErrorMessage="Vui lòng nhập số GCN" ></asp:RequiredFieldValidator>
                            </div>
                        </div>
                        <div class="DivRow">
                            <div class="DivLabel">
                            </div>
                            <div class="DivTextBox">
                                <asp:Button ID="btnCheckCertifiedCode" runat="server" Text="Kiểm tra" CssClass="btn" />
                            </div>
                        </div>
                    </div>
                    <div id="ShowDetailCertifiedCode" runat="server">
                        <div class="DivRow">
                            <div class="DivLabel">
                                <asp:Label ID="Label1" CssClass="TextLabel" runat="server" Text="Tên hộ kinh doanh:" />
                            </div>
                            <div class="DivTextBox">
                                <asp:TextBox ID="txtBiz_VietNam" CssClass="TextBox disabled" runat="server" Text="" />
                            </div>
                        </div>
                        <div class="DivRow">
                            <div class="DivLabel">
                                <asp:Label ID="Label2" CssClass="TextLabel" runat="server" Text="Số GCN:" />
                            </div>
                            <div class="DivTextBox">
                                <asp:TextBox ID="txtCertifiedCode" CssClass="TextBox disabled" runat="server" Text="" />
                            </div>
                        </div>
                        <div class="DivRow">
                            <div class="DivLabel">
                                <asp:Label ID="Label4" CssClass="TextLabel" runat="server" Text="Cơ quan cấp:" />
                            </div>
                            <div class="DivTextBox">
                                <asp:TextBox ID="txtCertifiedDeptName" CssClass="TextBox disabled" runat="server"
                                    Text="" />
                            </div>
                        </div>
                        <div class="DivRow">
                            <div class="DivLabel">
                                <asp:Label ID="Label5" CssClass="TextLabel" runat="server" Text="Ngày cấp:" />
                            </div>
                            <div class="DivTextBox">
                                <asp:TextBox ID="txtCertifiedDate" CssClass="TextBox disabled" runat="server" Text="" />
                            </div>
                        </div>
                        <div class="DivRow">
                            <div class="DivLabel">
                                <asp:Label ID="lblDiaDiemKD" CssClass="TextLabel" runat="server" Text="Địa điểm kinh doanh: " />
                            </div>
                            <div class="DivTextBox">
                                <asp:TextBox runat="server" ID="txtBiz_HeadOffice" CssClass="TextBox disabled" />
                            </div>
                        </div>
                        <div class="DivRow">
                            <div class="DivLabel">
                                <asp:Label ID="Label13" CssClass="TextLabel" runat="server" Text="Điện thoại: " />
                            </div>
                            <div class="DivTextBox">
                                <asp:TextBox ID="txtOw_Tel" CssClass="TextBox disabled" runat="server" Text="" />
                            </div>
                        </div>
                        <div class="DivRow">
                            <div class="DivLabel">
                                <asp:Label ID="Label14" CssClass="TextLabel" runat="server" Text="Fax: " />
                            </div>
                            <div class="DivTextBox">
                                <asp:TextBox ID="txtOw_Fax" CssClass="TextBox disabled" runat="server" Text="" />
                            </div>
                        </div>
                        <div class="DivRow">
                            <div class="DivLabel">
                                <asp:Label ID="Label15" CssClass="TextLabel" runat="server" Text="Email: " />
                            </div>
                            <div class="DivTextBox">
                                <asp:TextBox ID="txtOw_Email" CssClass="TextBox disabled" runat="server" Text="" />
                            </div>
                        </div>
                        <div class="DivRow">
                            <div class="DivLabel">
                                <asp:Label ID="Label16" CssClass="TextLabel" runat="server" Text="Website: " />
                            </div>
                            <div class="DivTextBox">
                                <asp:TextBox ID="txtOw_WebSite" CssClass="TextBox disabled" runat="server" Text="" />
                            </div>
                        </div>
                        <h3>
                            <asp:Label ID="Label6" runat="server" Text="THÔNG BÁO NGỪNG KINH DOANH NHƯ SAU:" />
                        </h3>
                        <div class="DivRow">
                            <div class="DivLabel">
                                <asp:Label ID="lblThoigiantamngung" CssClass="TextLabel" runat="server" Text="Thời gian tạm ngừng:" />
                            </div>
                            <div class="DivTextBox">
                                <cc1:ValidationTextBox ID="txtThoigiantamngung" CssClass="TextBox" Group="reg" AssociatedLableText="Thời gian tạm ngừng."
                                    runat="server" Text="" MaxLength="50" DataType="required"></cc1:ValidationTextBox>&nbsp;<span
                                        style="color: red">*</span>
                            </div>
                        </div>
                        <div class="DivRow">
                            <div class="DivLabel">
                                <asp:Label ID="lblBatdate" CssClass="TextLabel" runat="server" Text="Bắt đầu:" />
                            </div>
                            <div class="DivTextBox">
                                <cc1:ValidationTextBox ID="txtBatdate" CssClass="TextBox Date" Group="reg" AssociatedLableText="Thời gian tạm ngừng."
                                    runat="server" Text="" MaxLength="50" DataType="required"></cc1:ValidationTextBox>&nbsp;<span
                                        style="color: red">*</span>
                            </div>
                        </div>
                        <div class="DivRow">
                            <div class="DivLabel">
                                <asp:Label ID="lblKetthuc" CssClass="TextLabel" runat="server" Text="Kết thúc:" />
                            </div>
                            <div class="DivTextBox">
                                <cc1:ValidationTextBox ID="txtKetthuc" CssClass="TextBox Date" Group="reg" AssociatedLableText="Thời gian tạm ngừng."
                                    runat="server" Text="" MaxLength="50" DataType="required"></cc1:ValidationTextBox>&nbsp;<span
                                        style="color: red">*</span>
                            </div>
                        </div>
                        <div class="DivRow">
                            <div class="DivLabel">
                                <asp:Label ID="lblLydo" CssClass="TextLabel" runat="server" Text="Lý do:" />
                            </div>
                            <div class="DivTextBox">
                                <asp:TextBox ID="txtLydo" CssClass="TextBox" runat="server" Text="" TextMode="MultiLine"
                                    Rows="5" />
                            </div>
                        </div>
                        <div class="DivRow">
                            <div class="DivLabel">
                                &nbsp;&nbsp;&nbsp;</div>
                            <div class="DivTextBox">
                                <div style="float: left">
                                    <asp:Button ID="btnSave" runat="server" Text=" Lưu " CssClass="btn" />
                                    &nbsp;<asp:Button ID="btnSaveAndNew" runat="server" CssClass="btn" Text=" Lưu &amp; Làm mới"
                                        Visible="false" />
                                    &nbsp;<asp:Button ID="btnReset" runat="server" CausesValidation="false" CssClass="btn"
                                        Text="Làm lại" /></div>
                                <div style="float: right; text-align: right">
                                    &nbsp;<asp:ImageButton ID="btnBack" ImageAlign="AbsMiddle" ToolTip="Quay lại" runat="server"
                                        ImageUrl="~/images/back.png" /></div>
                            </div>
                        </div>
                    </div>
                </div>
                <div style="display: none">
                    <asp:HiddenField ID="hidID" Value="0" runat="server" />
                    <asp:HiddenField ID="hidCertifiedCode" Value="0" runat="server" />
                </div>
            </div>
        </div>
    </ContentTemplate>
</asp:UpdatePanel>
